package com.sh.business.domain.bo;

import com.sh.business.domain.UserWithdrawal;
import com.sh.common.mybatis.core.domain.BaseEntity;
import com.sh.common.core.validate.AddGroup;
import com.sh.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 用户提现记录业务对象 bms_user_withdrawal
 *
 * @author ruoyi
 * @date 2024-10-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = UserWithdrawal.class, reverseConvertGenerate = false)
public class UserWithdrawalBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户id
     */
    //@NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;


    private List<Long> userIds;

    /**
     * 类型（2、usdt 3、aleo）
     */
    //@NotNull(message = "类型（2、usdt 3、aleo）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 订单编号
     */
    //@NotBlank(message = "订单编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orderSn;

    /**
     * 提现金额
     */
    //@NotNull(message = "提现金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal amount;

    /**
     * 手续费
     */
    //@NotNull(message = "手续费不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal feeAmount;

    /**
     * 实际到账金额
     */
    //@NotNull(message = "实际到账金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal actualAmount;

    /**
     * hash
     */
    //@NotBlank(message = "hash不能为空", groups = { AddGroup.class, EditGroup.class })
    private String txHash;

    /**
     * 状态（1：待审核 2：待确认 3: 已到账 4: 未到账 5: 审核拒绝）
     */
    //@NotNull(message = "状态（1：待审核 2：待确认 3: 已到账 4: 未到账 5: 审核拒绝）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 时间
     */
    //@NotNull(message = "时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date transferTime;

    /**
     *
     */
    //@NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fromAddress;

    /**
     * 数据
     */
    //@NotBlank(message = "数据不能为空", groups = { AddGroup.class, EditGroup.class })
    private String notifyData;

    /**
     * 备注
     */
    //@NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 密码
     */
    @NotBlank(message = "password can not be empty")
    private String password;

    /**
     * 序号
     */
    private String mark;

    /**
     * 起始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
